package com.world.business.weapon.domain.query;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.time.LocalDateTime;

/**
 * 装备新增请求参数
 *
 * @author 邓驴
 * @date 2023/7/29 15:56
 **/
@Data
public class WeaponAddRequest {

    @NotBlank(message = "装备名称必填")
    @ApiModelProperty("装备名称")
    private String name;

    @ApiModelProperty("装备昵称")
    private String nickname;

    @ApiModelProperty("装备描述")
    private String description;

    /**
     * 装备级别，参考字典表中武器级别
     */
    @NotBlank(message = "装备级别必填")
    @ApiModelProperty("级别")
    private String level;

    @ApiModelProperty("发明者")
    private String refineId;

    @ApiModelProperty("发明时间")
    private LocalDateTime refineTime;

    @ApiModelProperty("来源")
    @TableField(value = "`from`")
    private String from;
}

